<template>
  <div></div>
</template>

<script>
import axios from "axios";
export default {
  async created() {
    let url = '/hehe/product/home'
    axios.get(url).then(res=>{ //异步请求
      console.log(res);
    })

    // let res = await axios.get(url) //同步请求、阻塞代码
    // console.log(res);
    // console.log(123);

    // let url1 = '/wzj/proxy/products/12234/attributes'
    // let res1 = await axios({
    //   url:url1,
    //   headers:{}
    // })
    // console.log(res1);

    // let url = 'https://wcgi.jianke.com/category/api/fullCategories?pid=196&platform=1'
    // let url = "https://fe-wcgi.jianke.com/v2/searchs?cid=3881&pn=1&ps=10";
    // axios({
    //   url,
    //   headers: {
    //     platform: "MOBILE",
    //     Referer: "https://m.jianke.com/",
    //     site: "jianke_mall",
    //     terminal: "mobile",
    //   },
    // }).then((res) => {
    //   console.log(res);
    // });

    // let url = 'https://api.haobangni.com/sites/school/edu/course/paging'
    // axios.post(url,{"args":{"class2":"","companyid":1,"curpage":1}}).then(res=>{
    //   console.log(res);
    // })
  },
};
</script>

<style lang="less" scoped></style>
